<!--
@author		Yi Bo <etng2004@gmail.com>
@version	$Id: announce_add.php 39 2007-09-02 12:49:05Z etng2004 $
@copyrithg	2006-2007 ETE.CN
@license 	PHP Version 3.0 {@link http://www.php.net/license/3_0.txt}
-->
<?php
$this->declareVars();
echo $this->render('header.php');
//$this->dump($this->announce);
?>
<form action="<?php echo $this->base_url;?>/add/" method="post" enctype="multipart/form-data" name="frmAddAnnounce" id="frmAddAnnounce">
<table cellpadding="0" cellspacing="0" border="0">
<tr class="tblhead">
	<td colspan="2">发布公告</td>
</tr>
<tr class="tblbody">
	<td width="15%">公告标题：</td>
	<td width="85%"><input type="text" name="fields[title]" value="<?php echo $this->announce['title'];?>" size="40" id="field_title" /></td>
</tr>
<tr class="tblbody">
	<td width="15%">公告内容：</td>
	<td width="85%">
	<?php
	echo $this->fckeditor('fields[content]', $this->announce['content'], 'Basic');
	?></td>
</tr>
<tr class="tblbody">
	<td>公告有效期：</td>
	<td>
		自<input type="text" name="fields[published_at]" value="<?php echo $this->announce['published_at']?date('Y-m-d', $this->announce['published_at']):'';?>" size="11" id="field_published_at" />
		至<input type="text" name="fields[expired_at]" value="<?php echo $this->announce['expired_at']?date('Y-m-d', $this->announce['expired_at']):'';?>" size="11" id="field_expired_at" />
		&nbsp;&nbsp;&nbsp;&nbsp;<em>起始时间设置，不设置则自当日开始生效，永不失效</em>
	</td>
</tr><tr class="tblfoot">
	<td colspan="2" align="center"><input type="submit" value="发布" /></td>
</tr>
</table>
</form>
<script type="text/javascript">
	$(document).ready(function () {
		$('#field_published_at').calendar();
		$('#field_expired_at').calendar();
	});
</script>
<?php echo $this->render('footer.php');?>